<script>

<?

if (!empty($province)){?>

redirec(document.getElementById('<?=$provinceName?>').value,document.getElementById('<?=$cityName?>'),<?=$city?>);

<?	

}

?>

</script>